package net.csdn.business.notify.common.config.properties;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import net.csdn.business.notify.common.model.vo.NotifyTargetVO;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;


/**
 * @ClassName TargetTypeConfig
 * @Description TODO
 * @Author zhangyl
 * @Date 2023/12/7 16:17
 */
@Getter
@Setter
@NoArgsConstructor
@Component
@RefreshScope
@ConfigurationProperties(prefix = "notify.limit")
public class NotifyLimitProperties {

    /**
     * 发送私信的窗口时间
     * 单位：秒
     */
    private Integer privateWindowTime=1;

    /**
     * 窗口时间内发送私信的数量
     *
     */
    private Integer privateNum=1;
}
